import request from '@/utils/request'

const api = {
	add: '/api/user_car/add',
	list: '/api/user_car/getPageList',
	quote: '/api/user_car/quote',
	detail: '/api/user_car/inquiryDetail',
	carSourceDetail:'api/UserCarWantBuy/getCarSourceDetail',
	setCollect:'api/Collect/setCollect',
	delCollect:'api/collect/delCollect'
}

/**
 * 添加询价
 * @param {Object} data
 */
export function addFindCar(data) {
	return request.get(api.add)
}

/**
 * 询价列表
 * @param {Object} data
 */
export function listFindCar(data) {
	return request.get(api.list,data)
}

/**
 * 询价报价/回复
 * @param {Object} data
 */
export function quoteFindCar(data) {
	return request.post(api.quote,data)
}

/**
 * 询价详情
 * @param {Object} data
 */
export function detailFindCar(data) {
	return request.get(api.detail,data)
}
/**
 * 车源详情
 * @param {Object} data
 */
export function carSourceDetail(data) {
	return request.get(api.carSourceDetail,data)
}
/**
 * 收藏
 * @param {Object} data
 */
export function setCollect(data) {
	return request.post(api.setCollect,data)
}
export function delCollect(data) {
	return request.post(api.delCollect,data)
}


